places = ["shanghai","shengzheng","bali","lasa","xian","xianggang","aomen"]
print(places)
print(sorted(places))
print(places)
print(sorted(places,reverse=True)) #在使用sorted将其按字母相反顺序打印注意写法
print(places)
places.reverse()
print(places)
places.reverse()
print(places)
places.sort()
print(places)
places.sort(reverse=True)
print(places)


